-- local shucai_notag = fk.CreateSkill{
--     name = "wk_heg__shucai_notag",
-- }

-- Fk:loadTranslationTable{
--     ["wk_heg__shucai_notag"] = "疏才",
--     [":wk_heg__shucai_notag"] = "结束阶段，你可将你装备区内一张牌移动至其他角色装备区内，然后<a href=':ElectedChange'>推举</a>并删除此武将牌所有技能标签直至你进入濒死状态。",
-- }

-- local HG = require "packages/new_heg_diy_my/util"

-- shucai_notag:addEffect(fk.EventPhaseStart,{
--     anim_type = "support",
--     can_trigger = function(self, event, target, player, data)
--         return player:hasSkill(shucai_notag.name) and target == player and player.phase == Player.Finish and #player:getCardIds("e") > 0 and
--           table.find(player.room.alive_players, function(p) return player:canMoveCardsInBoardTo(p, "e") end) and player:usedSkillTimes("wk_heg__shucai", Player.HistoryTurn) == 0
--       end,
--     on_cost = function(self, event, target, player, data)
--         local room = player.room
--         local targets = table.filter(room.alive_players, function (p) return player:canMoveCardsInBoardTo(p, "e") end)
--         local to = room:askToChoosePlayers(player,{
--             targets = targets,
--             min_num = 1,
--             max_num = 1,
--             prompt = "#wk_heg__shucai-ask",
--             skill_name = shucai_notag.name,
--             cancelable = true,
--         })
--         if #to > 0 then
--           event:setCostData(self,{ tos = to })
--           return true
--         end
--       end,
--     on_use = function(self, event, target, player, data)
--         local room = player.room
--         target = event:getCostData(self).tos[1]
--         player:broadcastSkillInvoke("wk_heg__shucai")
--         room:askToMoveCardInBoard(player,{
--             target_one = player,
--             target_two = target,
--             skill_name = shucai_notag.name,
--             flag = "e",
--             move_from = player,
--         })
--         if player.dead or target.dead then return end
--         HG.DoElectedChange(room, player, shucai_notag.name)
--         if not player.dead and player.deputyGeneral == "wk_heg__buzhi" then
--           room:setPlayerMark(player, "wk_heg__dingpan_notagged", 1)
--           room:handleAddLoseSkills(player, "-wk_heg__shucai|wk_heg__shucai_notag|wk_heg__dingpan_notag", nil)
--         end
--       end,
-- })

-- --进入濒死恢复标签
-- shucai_notag:addEffect(fk.EnterDying,{
--     mute = true,
--     is_delay_effect = true,
--     can_trigger = function (self, event, target, player, data)
--         return target == player and player:getMark("wk_heg__dingpan_notagged") > 0
--       end,
--     on_cost = Util.TrueFunc,
--     on_use = function (self, event, target, player, data)
--         player.room:handleAddLoseSkills(player, "-wk_heg__shucai_notag|-wk_heg__dingpan_notag|wk_heg__shucai", nil)
--      end,
-- })

-- return shucai_notag